package cn.edu.scnu.socialapp.service;

import cn.edu.scnu.socialapp.model.vo.Result;
import cn.edu.scnu.socialapp.model.vo.params.CommentParams;
import org.springframework.transaction.annotation.Transactional;

public interface CommentsService {
    /**
     * 根据文章Id查询所有评论
     * @param articleId
     * @return
     */
    Result commentsByArticleId(Long articleId);

    /**
     * 新增评论
     * @param commentParams
     * @return
     */
    @Transactional
    Result comment(CommentParams commentParams);
}
